package com.limf.demo.java8.annotation;

//@Hints({@Hint("hint1"), @Hint("hint2")})
@Hint(value="hint1")
@Hint(value="hint2")
class Person {

	public static void main(String[] args) {
		
		Hint hint = Person.class.getAnnotation(Hint.class);
		System.out.println(hint);   // null
		Hint[] hints2 = Person.class.getAnnotationsByType(Hint.class);
		System.out.println(hints2.length);
		Hints hints1 = Person.class.getAnnotation(Hints.class);
		System.out.println(hints1.value().length);   // 2

		
	}
	
}
